﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ConsoleApp.TestFunc.Interface;

namespace ConsoleApp.TestFunc.Service
{
    internal class BatteryA : IBattery
    {
        public double capacity { get ; set; }

        public void Supply(double consumption)
        {
            this.capacity -= consumption;
        }

        public double GetCapacity() => capacity;
    }
}
